//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Morgan Wallen, Parker McCollum, Ernest & Nate Smith','MetLife Stadium','East Rutherford, NJ','Saturday','5/18/2024','5:30 PM','5458313','Morgan-Wallen--Parker-McCollum--Ernest---Nate-Smith-5-18-2024'],['Omaha Symphony: Ernest Richardson: Space Oddity - The Music of David Bowie','Kiewit Hall At Holland Performing Arts Center','Omaha, NE','Friday','5/24/2024','7:30 PM','5883660','Omaha-Symphony--Ernest-Richardson--Space-Oddity---The-Music-of-David-Bowie-5-24-2024'],['Ernest and Friends','Ryman Auditorium','Nashville, TN','Tuesday','6/4/2024','7:30 PM','6338880','Ernest-and-Friends-6-4-2024'],['Morgan Wallen, Ernest & Lauren Watkins','Veterans United Home Loans Amphitheater','Virginia Beach, VA','Thursday','6/6/2024','7:00 PM','5467445','Morgan-Wallen--Ernest---Lauren-Watkins-6-6-2024'],['Morgan Wallen, Ernest & Lauren Watkins','Veterans United Home Loans Amphitheater','Virginia Beach, VA','Friday','6/7/2024','7:00 PM','5458317','Morgan-Wallen--Ernest---Lauren-Watkins-6-7-2024'],['Ernest - Artist','Jenks Club - NJ','Point Pleasant Beach, NJ','Wednesday','6/26/2024','8:00 PM','6381535','Ernest---Artist-6-26-2024'],['Windy City Smokeout: Thomas Rhett, Parker McCollum, Cody Johnson & Carrie Underwood - 4 Day Pass','Windy City Smokeout','Chicago, IL','Thursday','7/11/2024','TBD','5884783','Windy-City-Smokeout--Thomas-Rhett--Parker-McCollum--Cody-Johnson---Carrie-Underwood---4-Day-Pass-7-11-2024'],['Windy City Smokeout: Thomas Rhett, Chase Rice & Ernest - Thursday','Windy City Smokeout','Chicago, IL','Thursday','7/11/2024','2:00 PM','5884784','Windy-City-Smokeout--Thomas-Rhett--Chase-Rice---Ernest---Thursday-7-11-2024'],['Country Boom Festival: Chase Rice, Ernest & Corey Kent - Saturday','Country Boom Grounds','West Salem, WI','Saturday','7/13/2024','12:00 PM','6246837','Country-Boom-Festival--Chase-Rice--Ernest---Corey-Kent---Saturday-7-13-2024'],['Ernest','Madison County Fair and Rodeo','Madison, NE','Sunday','7/14/2024','8:30 PM','6333422','Ernest-7-14-2024']],'"Ernest"','https://www.ticketnetwork.com');